			$("#close-ad").click(function(){
				$(".top-ad .ad").css("display","none");
				$("#close-ad").remove();
			});
			
			$("#daigou").click(function(){
				$("#btn-dg").val("我要代购");
				$("#input-text1").addClass("dgbgc");
				$("#input-text2").removeClass("zybgc");
			})
			
			$("#zhuanyun").click(function(){
				$("#btn-dg").val("我要转运");
				$("#input-text2").addClass("zybgc");
				$("#input-text1").removeClass("dgbgc")
			})
			
			
			$("#panda-cat").on("mouseenter",function(){
				$("#panda-cat").html("客服中心").css("color","red");
			}).on("mouseleave",function(){
				$("#panda-cat").html("");
				$("#panda-cat").append("<img src='images/online-kefu.png'>");
			});
			$("#panda-phone").on("mouseenter",function(){
				$("#panda-phone").html("下载APP").css("color","red");				
			}).on("mouseleave",function(){
				$("#panda-phone").html("");
				$("#panda-phone").append("<img src='images/online-phone.png'>");				
			});
			

			
			$(document).scroll(function(){

			    var scrollTop = document.documentElement.scrollTop;
					
			    if(scrollTop >= 200){
			        // 你想做的事
					$("#back-top").css({"display":"block","border":"solid 1px #ddd","border-top":"none","background":"white","height":"60px","width":"60px"});
			        
			    }else{
			    	$("#back-top").css("display","none");
			    }
			});
			 
			
			

			
			$("#back-top").on("mouseenter",function(){
				$("#back-top").html("返回顶部").css("color","red");				
			}).on("mouseleave",function(){
				$("#back-top").html("");
				$("#back-top").append("<img src='images/online-black.png'>");				
			});
			
			$("#nav li").click(function(){
				$("#nav li").removeClass("class-active-always");
				$(this).addClass("class-active-always");
			})
			
			var str ="";
			function randomWord()
			{
				var wordStr = "ABCDEFGHIGKLMNOPQRSTUVWXYZ1234567890";
				var wordArr = wordStr.split("");
				str="";
				for (var i=0;i<4;i++) 
				{
					var randomNum = Math.floor(Math.random()*35+1);
					str+=wordArr[randomNum];
				}
				$(".yanzheng").html(str);
			}
			randomWord();
			
			
			$(".yanzheng").click(function(){
				randomWord();
			});
			
			
//			var arr = [];
//			var a,b,c;
//			for (var i=0;i<$(".price_gift").length;i++) {
//				var priceNum = $(".price_gift")[i].textContent;
//				arr.push(Number(priceNum));
//			}			
//			a = _.filter(arr,function(num){
//				return num<=50;
//			});
//			b = _.filter(arr,function(num){
//				return 50<num && num< 100;
//			});
//			c = _.filter(arr,function(num){
//				return 100<num;
//			});

			shopList1 = "<div class='week-hot'><div class='shop-count'><p class='shop-tips'>被拼</p>"+
							"<p class='shop-tips-count'>15</p></div>"+
						"<div class='shop-imgs'><img src='images/5006109.jpg'/></div>"+
						"<div class='shop-text'><span><a href='/product_detail'>创意可爱米奇米妮唐老鸭龙猫毛绒卡通钥匙包钥匙套钥匙扣女生</a></span></div>"+
						"<div class='shop-price'><span class='price-rmb'>&emsp;￥<span class='price_gift'>8.80</span></span><span class='shop-link'>淘宝</span>"+
						"</div></div>";
			shopList2 = "<div class='week-hot'><div class='shop-count'><p class='shop-tips'>被拼</p>"+
							"<p class='shop-tips-count'>10</p></div>"+
						"<div class='shop-imgs'><img src='images/5006280.jpg'/></div>"+
						"<div class='shop-text'><span><a href='/product_detail_1'>姐妹小西装女中长款外套2016新款韩版女装纯色休闲职业</a></span></div>"+
						"<div class='shop-price'><span class='price-rmb'>&emsp;￥<span class='price_gift'>149.00</span></span><span class='shop-link'>天猫</span>"+
						"</div></div>";			
			shopList3 = "<div class='week-hot'><div class='shop-count'><p class='shop-tips'>被拼</p>"+
							"<p class='shop-tips-count'>28</p></div>"+
						"<div class='shop-imgs'><img src='images/5006358.jpg'/></div>"+
						"<div class='shop-text'><span><a href=''>酱牛肉 225g大块五香熟牛肉特产熟食品小吃 中秋节日 零食大</a></span></div>"+
						"<div class='shop-price'><span class='price-rmb'>&emsp;￥<span class='price_gift'>19.90</span></span><span class='shop-link'>天猫</span>"+
						"</div></div>";
			shopList4 = "<div class='week-hot'><div class='shop-count'><p class='shop-tips'>被拼</p>"+
							"<p class='shop-tips-count'>18</p></div>"+
						"<div class='shop-imgs'><img src='images/5006285.jpg'/></div>"+
						"<div class='shop-text'><span><a href=''>韩国基础款发饰头绳橡皮筋加粗发圈简约韩版发绳绑头发饰品批</a></span></div>"+
						"<div class='shop-price'><span class='price-rmb'>&emsp;￥<span class='price_gift'>0.60</span></span><span class='shop-link'>淘宝</span>"+
						"</div></div>";
			shopList5 = "<div class='week-hot'><div class='shop-count'><p class='shop-tips'>被拼</p>"+
							"<p class='shop-tips-count'>11</p></div>"+
						"<div class='shop-imgs'><img src='images/5006397.jpg'/></div>"+
						"<div class='shop-text'><span><a href=''>夏季防走光美背抹胸打底背心后背交叉裹胸式性感吊带内衣女带</a></span></div>"+
						"<div class='shop-price'><span class='price-rmb'>&emsp;￥<span class='price_gift'>8.50</span></span><span class='shop-link'>淘宝</span>"+
						"</div></div>";
			shopList6 = "<div class='week-hot'><div class='shop-count'><p class='shop-tips'>被拼</p>"+
							"<p class='shop-tips-count'>3</p></div>"+
						"<div class='shop-imgs'><img src='images/5006313.jpg'/></div>"+
						"<div class='shop-text'><span><a href=''>丝绒雾感韩国color deep咖乐迪气垫唇釉笔哑光口红唇彩唇膏</a></span></div>"+
						"<div class='shop-price'><span class='price-rmb'>&emsp;￥<span class='price_gift'>71.10</span></span><span class='shop-link'>淘宝</span>"+
						"</div></div>";
			shopList7 = "<div class='week-hot'><div class='shop-count'><p class='shop-tips'>被拼</p>"+
							"<p class='shop-tips-count'>4</p></div>"+
						"<div class='shop-imgs'><img src='images/5006310.jpg'/></div>"+
						"<div class='shop-text'><span><a href=''>荷叶边牛仔短裤女裤裙夏学生女裤子夏新款16n潮弹力高腰裙裤</a></span></div>"+
						"<div class='shop-price'><span class='price-rmb'>&emsp;￥<span class='price_gift'>79.90</span></span><span class='shop-link'>天猫</span>"+
						"</div></div>";
			shopList8 = "<div class='week-hot'><div class='shop-count'><p class='shop-tips'>被拼</p>"+
							"<p class='shop-tips-count'>5</p></div>"+
						"<div class='shop-imgs'><img src='images/5006369.jpg'/></div>"+
						"<div class='shop-text'><span><a href=''>三奇游泳衣女士连体平角专业运动显瘦遮肚保守大码露背温泉泳</a></span></div>"+
						"<div class='shop-price'><span class='price-rmb'>&emsp;￥<span class='price_gift'>89.00</span></span><span class='shop-link'>天猫</span>"+
						"</div></div>";
			shopList9 = "<div class='week-hot'><div class='shop-count'><p class='shop-tips'>被拼</p>"+
							"<p class='shop-tips-count'>15</p></div>"+
						"<div class='shop-imgs'><img src='images/5006487.jpg'/></div>"+
						"<div class='shop-text'><span><a href=''>韩国正品monopoly可爱笑脸防消磁长款护照包情侣旅行高级护</a></span></div>"+
						"<div class='shop-price'><span class='price-rmb'>&emsp;￥<span class='price_gift'>108.80</span></span><span class='shop-link'>淘宝</span>"+
						"</div></div>";			
			function showPrice1(){								
				$(".week-hot").remove();	 
				$("#shop-listBox").append(shopList1,shopList2,shopList3,shopList4,shopList5,shopList6,shopList7,shopList8,shopList9);				
			}
			function showPrice2(){								
				$(".week-hot").remove();	 
				$("#shop-listBox").append(shopList1,shopList3,shopList4,shopList5);				
			}
			function showPrice3(){								
				$(".week-hot").remove();	 
				$("#shop-listBox").append(shopList6,shopList7,shopList8);				
			}
			function showPrice4(){								
				$(".week-hot").remove();	 
				$("#shop-listBox").append(shopList2,shopList9);				
			}